﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Site.Master" 
Inherits="System.Web.Mvc.ViewPage<IEnumerable<ProductInfo.Core.Models.ReleaseNoteEntry>>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	<%= ViewContext.RouteData.GetRequiredString("controller") %>
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

    <h3>Release Notes Information</h3>
     <p>
        <%= Html.ActionLink("Create new", "Create") %>
    </p>
    <p>
        <%= Html.ActionLink("Update version", "UpdateVersion") %>
    </p>
    <p/>
    <table>
        <tr>
            <th></th>
            <th>
                ProductId
            </th>
            <th>
                Version
            </th>
            <th>
                Detail
            </th>
            <th>
                Author
            </th>
            <th>
                EditTimestamp
            </th>
        </tr>
    <% foreach (var item in Model) { %>
        <tr>
            <td>
                <%= Html.ActionLink("Edit", "Edit", new { Id = item.Id })%> 
            </td>
            <td>
                <%= Html.Encode(item.ProductId) %>
            </td>
            <td>
                <%= Html.Encode(item.Version) %>
            </td>
            <td>
                <%= Html.Encode(item.Detail) %>
            </td>
            <td>
                <%= Html.Encode(item.Author) %>
            </td>
             <td>
                <%= Html.DisplayFor(editTimestamp => item.EditTimestamp)%>
            </td>
        </tr>
    <% } %>
    </table>
</asp:Content>

